<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title></title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">首页>审批申请</div>
        <div class="content addapply">
        <form action="{:U('Pledge/express_info')}" method="post">
            <div class="box" style='width: 56%'>
                <h1>快递录入<span>(标*为必填项)</span></h1>
                <div class="list-block">
                    <div class="row">
                        <label>寄件人:</label>
                        <input type="text" name="send_name" value=''>
                        <label>收件人:</label>
                        <input type="text" name="addressee" value=''>
                    </div>
                    <div class="row">
                        <label>快递单号:</label>
                        <input type="text" name="express_number" value=''>
                        <label>客户姓名:</label>
                        <input type="text" name="user_name" value='{$user.user_name}'>
                    </div>
                    <div class="row">
                        <label>快递内容:</label>
                        <input type='checkbox' id='file1' name='file[]' value='1' ><span for="file1">借款合同</span>
                        <input type='checkbox' id='file2' name='file[]' value='2' ><span for="file2">抵押合同</span>
                
                        <input type='checkbox' id='file4' name='file[]' value='4' ><span for="file4">身份证复印件</span>
                        <input type='checkbox' id='file16' name='file[]' value='16' ><span for="file16">委托书(客户) 委托书(银行）</span>
                        <input type='checkbox' id='file17' name='file[]' value='17' ><span for="file17">机动车抵押</span>
                        <input type='checkbox' id='file18' name='file[]' value='18' ><span for="file18">登记/质押备案申请表</span>
                        <input type='checkbox' id='file19' name='file[]' value='19' ><span for="file19">银行营业执照复印件</span>
                    </div>
                    <div class="row">
                        <label>快递时间:</label>
                        <input type="text" id="express_times" name="express_times" value="{:date('Y-m-d')}" class="datepicker" readonly />
                        <!-- <input type="text" name="express_time"> -->
                        <label>快递公司:</label>
                        <select name="company_id" id="form-field-10">
                            <foreach name="express_company" item="v" >
                             <if condition="$key eq $info['company_id']">
                            <option value={$key} selected>{$v}</option>
                             <else />
                             <option value={$key}>{$v}</option>
                            </if>
                            </foreach>
                        </select>
                    </div>
                      <div class="row">
                        <label><i class="required">*</i>上传照片: </label>
                        <label class="inputfile"><img id='fristImg' name='fristImg' src="" >
                        <input type='hidden' id='one' name='img' value=''/>
                        <input type="file" id="fileId1"  name="file[]" class="uploadA"><i>上传图片</i></label>
                 
                    </div>
                </div>
                <div class="list-block">
                    <input type="submit" class="button01" value="提交" name="">
                    <input type="hidden"  value="{$user.id}" name="user_id">
                    <input type="button" class="button01" value="暂不提交" name="">
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
    <script type="text/javascript" src='{:COM}js/daterangepicker.min.js'></script>
    <script src="{:COM}js/ajaxfileupload.js"></script>
    <script type="text/javascript">
        <volist name="info.file" id="file">
            $('#file{$file}').attr('checked', true);
            $('#file{$file}').attr('disabled', true);
        </volist>
    </script>
    
    <script type="text/javascript">
    $('input.datepicker').datetimepicker({format : "yyyy-mm-dd", minView : 2, autoclose : true});
    $('.uploadA').change(function(){
            $.ajaxFileUpload({
                url:'{:U("Upload/logo")}',//处理图片脚本
                secureuri: false,
                fileElementId :'fileId1',//file控件id
                dataType : 'text',
                success: function (data){
                    $("#fristImg").attr("src",data);
                    $("#one").attr("value",data);
                },
                error: function(data){
                    alert(data+"333");
                }
            })
        })
    </script>
</body>
</html>